import { reactive } from 'vue'
import { defineStore } from 'pinia'

export const useLoadStore = defineStore('loading', () => {
  const loading = reactive({
    get: false,
    post: false,
    requestingsGet: [], // 记录是否还有请求中的接口
    requestingsPost: [] // 记录是否还有请求中的接口
  })

  return { loading }
})
